﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Data.Models.Enums;

namespace Data.Models
{
    public class Resource
    {
        [Key]
        public int Id { get; set; }
        public int ResourceIdentifier { get; set; }
        public string Name { get; set; }
        public ResourceType ResourceType { get; set; }
        public string Description { get; set; }
        public virtual IList<Employee> Employees { get; set; }
        public IList<Material> Materials { get; set; }
        public IList<Equipment> Equipments { get; set; }

        public override string ToString()
        {
            return ResourceIdentifier.ToString() +"  " + Name + "  " + Description;
        }
    }
}
